.class public Lcom/waiqin365/lightapp/kehu/a/a/be;
.super Lcom/waiqin365/lightapp/kehu/a/d;


# instance fields
.field private d:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x68

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/kehu/a/d;-><init>(I)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 7

    const/4 v0, 0x1

    const/4 v1, 0x0

    :try_start_0
    new-instance v3, Lorg/json/JSONArray;

    invoke-direct {v3, p1}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    new-instance v2, Ljava/util/ArrayList;

    const/4 v4, 0x1

    invoke-direct {v2, v4}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v2, p0, Lcom/waiqin365/lightapp/kehu/a/a/be;->d:Ljava/util/ArrayList;

    move v2, v1

    :goto_0
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v2, v4, :cond_0

    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    new-instance v5, Lcom/waiqin365/lightapp/kehu/b/bs;

    invoke-direct {v5}, Lcom/waiqin365/lightapp/kehu/b/bs;-><init>()V

    const-string/jumbo v6, "id"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kehu/b/bs;->a:Ljava/lang/String;

    const-string/jumbo v6, "name"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kehu/b/bs;->b:Ljava/lang/String;

    const-string/jumbo v6, "job"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kehu/b/bs;->c:Ljava/lang/String;

    const-string/jumbo v6, "mobile"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kehu/b/bs;->d:Ljava/lang/String;

    const-string/jumbo v6, "tel"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kehu/b/bs;->e:Ljava/lang/String;

    const-string/jumbo v6, "birthday"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kehu/b/bs;->f:Ljava/lang/String;

    const-string/jumbo v6, "fax"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kehu/b/bs;->g:Ljava/lang/String;

    const-string/jumbo v6, "email"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kehu/b/bs;->h:Ljava/lang/String;

    const-string/jumbo v6, "remarks"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Lcom/waiqin365/lightapp/kehu/b/bs;->i:Ljava/lang/String;

    const-string/jumbo v6, "is_main"

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v5, Lcom/waiqin365/lightapp/kehu/b/bs;->j:Ljava/lang/String;

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/a/a/be;->d:Ljava/util/ArrayList;

    invoke-virtual {v4, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :catch_0
    move-exception v0

    move v0, v1

    :cond_0
    return v0
.end method
